package bookticket.core.base;

import java.util.List;
import java.util.Map;

public interface BaseService<T> {

	int add(T entity);
	
	int deleteById(Integer id);
	
	int deleteByIds(List<Integer> ids);
	
	int update(T entity);
	
	T findById(Integer id);
	
	List<T> findAll(Map<String, Object> pageMap);

	int getTotalCounter();
}
